<script>
import { reactive, ref } from 'vue'

export default {
  setup() {
    const money = ref(14000)

    console.log(money) // ref对象(响应式对象)

    const btn = () => {
      money.value += 1000
    }

    return { money, btn }
  },
}
</script>

<template>
  <h1>{{ money }}</h1>
  <button @click="btn">点击涨1000</button>
</template>
